package com.eascs.workflow.wf.controller;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import com.eascs.site.view.ViewContext;
import com.eascs.tag.MenuTag;
import com.eascs.web.sso.User;
import com.eascs.workflow.common.controller.BaseMasterViewController;
import com.eascs.workflow.common.service.sys.SysOrgService;

@Controller
public class HomeViewController extends BaseMasterViewController {
	@Autowired
	SysOrgService sysOrgService;

	@Override
	public void preHandle() {
		ViewContext.put(MenuTag.CURRENT_MENU_CODE, "systemSettings");
	}

	@RequestMapping(value = "/home", method = RequestMethod.GET)
	public String viewTemplate() {
		return "home";
	}

	@RequestMapping(value = "/test", method = RequestMethod.GET)
	public String test() {
		List<User> result = sysOrgService.checkDataPermission("184499");
		System.out.println(result);
		return null;
	}
}
